﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FlowProcessConfigEdit.aspx.cs"
    Inherits="BEGDC.CC.Web.Workflow.Admin.FlowProcessConfigEdit" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head runat="server">
    <title>Edit Process 编辑流程配置</title>
    <base target="_self" />
    <link href="../../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript">
        function CutoverDisplay() {
            var ddlAuditUserSource = document.getElementById("ddlAuditUserSource");
            var trUser = document.getElementById("trUser");
            var trRole = document.getElementById("trRole");
            var trUserOrRole = document.getElementById("trUserOrRole");
            trUser.style.display = "none";
            trRole.style.display = "none";
            trUserOrRole.style.display = "none";
            if (ddlAuditUserSource.value == "User") {
                trUser.style.display = "";
                trUserOrRole.style.display = "";
            }
            if (ddlAuditUserSource.value == "Role") {
                trRole.style.display = "";
                trUserOrRole.style.display = "";
            }
        }

        window.onload = function() {
            CutoverDisplay();
        }
    </script>

</head>
<body>
    <h3 class="ev-header-section">
        &nbsp;WORKFLOW PROCESS CONFIG 流程配置</h3>
    <form id="form1" runat="server">
    <table width="100%">
        <tr class="ev-row2">
            <td class="title">
                Process Name 流程名称：
            </td>
            <td class="val" >
                <asp:TextBox ID="txtProcessName" runat="server" ReadOnly="true" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
                <asp:TextBox ID="txtProcessNameFull" runat="server" ReadOnly="true" Width="200px"
                    CssClass="TEXTBOX"></asp:TextBox>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label1" runat="server">Node Name 结点名称：</asp:Label>
            </td>
            <td class="val" >
                <asp:TextBox ID="txtActivityName" runat="server" ReadOnly="true" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label3" runat="server">Description 描述：</asp:Label>
            </td>
            <td class="val">
                <asp:TextBox ID="txtDescription" runat="server" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label5" runat="server">Stamp Name 图章名称：</asp:Label>
            </td>
            <td class="val" >
                <asp:TextBox ID="txtDefaultStamp" runat="server" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
                <asp:CheckBox ID="chkShowStamp" Text="Show Stamp 是否显示图章？" runat="server" AutoPostBack="false" />
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label19" runat="server" Text="Audit User Source 审批人来源："></asp:Label>
            </td>
            <td class="val" >
                <asp:DropDownList ID="ddlAuditUserSource" runat="server" Width="200px">
                    <asp:ListItem>Applicant</asp:ListItem>
                    <asp:ListItem>ReportTo</asp:ListItem>
                    <asp:ListItem>User</asp:ListItem>
                    <asp:ListItem>Role</asp:ListItem>
                    <asp:ListItem Selected="True">Customization</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr id="trUser" style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label6" runat="server">Audit Person 审批人：</asp:Label>
            </td>
            <td class="val" >
                <asp:TextBox ID="txtAuditUsers" runat="server" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
                <asp:TextBox ID="txtAuditUsersID" runat="server" Style="display: none" CssClass="TEXTBOX"></asp:TextBox>
            </td>
        </tr>
        <tr id="trRole" style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label7" runat="server">Audit Role 审批角色：</asp:Label>
            </td>
            <td class="val" >
                <asp:TextBox ID="txtAuditRole" runat="server" Width="200px" CssClass="TEXTBOX"></asp:TextBox>
            </td>
        </tr>
        <tr id="trUserOrRole" style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label11" runat="server">Enable Select Audit User：</asp:Label>
            </td>
            <td class="val" >
                <asp:RadioButtonList ID="lstSelectAuditUsers" runat="server" RepeatDirection="Horizontal"
                    Width="200px" RepeatLayout="Flow">
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label14" runat="server">EnableExcludeCurrentUser</asp:Label>
            </td>
            <td class="val" >
                <asp:RadioButtonList ID="lstExcludeCurrentUser" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label15" runat="server">EnableBatchApprove</asp:Label>
            </td>
            <td class="val" >
                <asp:RadioButtonList ID="lstEnableBatchApprove" runat="server" RepeatDirection="Horizontal"
                    RepeatLayout="Flow">
                    <asp:ListItem>Yes</asp:ListItem>
                    <asp:ListItem>No</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label17" runat="server">Duty Days 审批时限：</asp:Label>
            </td>
            <td class="val">
                <asp:TextBox ID="txtDutyDays" runat="server" CssClass="TEXTBOX"></asp:TextBox>&nbsp;Days(天)
            </td>
        </tr>
        <tr style="display: none" class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label20" runat="server" Text="审批规则"></asp:Label>
            </td>
            <td class="val" >
                <asp:DropDownList ID="lstAuditRule" runat="server">
                    <asp:ListItem></asp:ListItem>
                    <asp:ListItem Value="All" Text="All"></asp:ListItem>
                    <asp:ListItem Value="Anyone" Text="Anyone"></asp:ListItem>
                    <asp:ListItem Value="Sequence" Text="Sequence"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr class="ev-row2">
            <td class="title" >
                <asp:Label ID="Label18" runat="server">Actions 操作：</asp:Label>
            </td>
            <td class="val" >
                <asp:CheckBoxList ID="lstAuditorActions" runat="server" RepeatColumns="5" RepeatDirection="Horizontal">
                    <asp:ListItem Value="Close" Text="Close"></asp:ListItem>
                    <asp:ListItem Value="Validate" Text="Validate"></asp:ListItem>
                    <asp:ListItem Value="Upload" Text="Upload"></asp:ListItem>
                    <asp:ListItem Value="Edit" Text="Edit"></asp:ListItem>
                    <asp:ListItem Value="Save" Text="Save"></asp:ListItem>
                    <asp:ListItem Value="Submit" Text="Submit"></asp:ListItem>
                    <asp:ListItem Value="Resubmit" Text="Resubmit"></asp:ListItem>
                     <asp:ListItem Value="PostSubmit" Text="PostSubmit"></asp:ListItem>
                   <asp:ListItem Value="ReplyAskForMore" Text="ReplyAskForMore"></asp:ListItem>
                    <asp:ListItem Value="Discard" Text="Discard"></asp:ListItem>
                    <asp:ListItem Value="Approve" Text="Approve"></asp:ListItem>
                    <asp:ListItem Value="ReplyForwardBack" Text="ReplyForwardBack"></asp:ListItem>
                    <asp:ListItem Value="Reject" Text="Reject"></asp:ListItem>
                    <asp:ListItem Value="Forward" Text="Forward"></asp:ListItem>
                    <asp:ListItem Value="AskForMore" Text="AskForMore"></asp:ListItem>
                    <asp:ListItem Value="Withdraw" Text="Withdraw"></asp:ListItem>
                    <asp:ListItem Value="Drawback" Text="Drawback"></asp:ListItem>
                    <asp:ListItem Value="Log" Text="Log"></asp:ListItem>
                    <asp:ListItem Value="Comment" Text="Comment"></asp:ListItem>
                    <asp:ListItem Value="Print" Text="Print"></asp:ListItem>
                    <asp:ListItem Value="Acknowledge" Text="Acknowledge"></asp:ListItem>
                </asp:CheckBoxList>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <table width="100%">
                    <tr class="ev-row2 padding5">
                        <td style="width: 150px; height: 30px; font-weight: bold;  text-align:center;" >
                            Action Type 操作
                        </td>
                        <td style="width: 250px; font-weight: bold; text-align:center;" >
                            Mail Template To Applicant <br /> 通知提交人邮件模板
                        </td>
                        <td style="width: 250px; font-weight: bold;  text-align:center;" >
                            Mail Template To Approver <br />通知审批人邮件模板
                        </td>
                        <td ></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Submit：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Submit_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Submit_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Resubmit：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Resubmit_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Resubmit_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            PostSubmit：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_PostSubmit_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_PostSubmit_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>                    
                    <tr class="ev-row2">
                        <td class="title">
                            ReplyAskForMore：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_ReplyAskForMore_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_ReplyAskForMore_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Approve：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Approve_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Approve_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Validate：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Validate_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Validate_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr> 
                    <tr class="ev-row2">
                        <td class="title">
                            Upload：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Upload_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Upload_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>                                         
                    <tr class="ev-row2">
                        <td class="title">
                            Reject：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Reject_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Reject_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Forward：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Forward_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Forward_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            AskForMore：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_AskForMore_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_AskForMore_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    <tr class="ev-row2">
                        <td class="title">
                            Withdraw：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Withdraw_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Withdraw_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    
                    <tr class="ev-row2">
                        <td class="title">
                            Acknowledge：
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Acknowledge_Notify_Applicant" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td align="center" class="val">
                            <asp:DropDownList ID="ddlMTemp_Acknowledge_Notify_Approver" runat="server" DataTextField="TemplateCode"
                                DataValueField="TemplateID" Width="240px">
                            </asp:DropDownList>
                        </td>
                        <td class="val"></td>
                    </tr>
                    
                </table>
            </td>
        </tr>
        <tr class="ev-row2">
            <td colspan="2" class="padding5 ac">
                <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="btn"
                    OnClick="btnSave_Click"></asp:Button>&nbsp;&nbsp;&nbsp;
                <asp:Button ID="btnGoBack" runat="server" Text="Close" CssClass="btn" OnClientClick="window.close();return false;">
                </asp:Button>
            </td>
        </tr>
    </table>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
        ShowSummary="False" />
    </form>
</body>
</html>